//
//  CashBackViewController.swift
//  FeastBooking
//
//  Created by Imon on 2017/7/14.
//  Copyright © 2017年 Imon. All rights reserved.
//

import UIKit

class CashBackViewController: UIViewController {

    let pendingCashBack: CashBackMenu = {
        let menu = CashBackMenu()
 //       menu.titleLabel.text = "未入帳返現"
 //       menu.balanceLabel.text = "$1500.00"
        return menu
    }()
    
    let proceededCashBack: CashBackMenu = {
        let menu = CashBackMenu()
 //       menu.titleLabel.text = "已入帳返現"
 //       menu.balanceLabel.text = "$4500.00"
        return menu
    }()
    
    let lifetimeCashBack: CashBackMenu = {
        let menu = CashBackMenu()
 //       menu.titleLabel.text = "總返現"
 //       menu.balanceLabel.text = "$6000.00"
        return menu
    }()
    
    override func viewDidLoad() {
        super.viewDidLoad()
        self.view.backgroundColor = lightSaperatorColor
        
        setBackBarItem()
        
        pendingCashBack.frame = CGRect(x: 0, y: 0, width: self.view.bounds.width, height: menuHeight)
        proceededCashBack.frame = CGRect(x: 0, y: menuHeight, width: self.view.bounds.width, height: menuHeight)
        lifetimeCashBack.frame = CGRect(x: 0, y: menuHeight * 2, width: self.view.bounds.width, height: menuHeight)
        
        self.view.addSubview(pendingCashBack)
        self.view.addSubview(proceededCashBack)
        self.view.addSubview(lifetimeCashBack)
    }
    
    override func viewWillDisappear(_ animated: Bool) {
        self.navigationController?.setNavigationBarHidden(true, animated: true)
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
